<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<li>
<!-- BEGIN POST -->
		<dl class="comment rounded">
			<dt>
				<? echo View::factory('forum/blocks/userinfo')->set('user', $post->author) ?>
			</dt>
			<dd class="header">
				<span class="ts leftside">[ <?=cmsformat::timestamp('forum.post',$post->created)?> ]</span>
				<span class="manage">
					<? if (access::can($post, 'update')):?>
					<form action='/<?=Router::uri('forum', array('controller'=>'post', 'method'=>'edit'))?>' method='POST'>
						<?=form::hidden('id', $post->id)?>
						<input type='submit' value='edit' />
					</form>
					<? endif; ?>
					<? if (access::can($post, 'delete')):?>
					<form action='/<?=Router::uri('forum', array('controller'=>'post', 'method'=>'delete'))?>' method='POST'>
						<?=form::hidden('id', $post->id)?>
						<input type='submit' value='delete' />
					</form>
					<? endif; ?>
				</span>
			</dd>
			<dd class="body"><div><?=$post->text?></div></dd>
			<dd class="footer"></dd>
		</dl>
<? Event::run('forum.post.render', $post);?>
<!-- END POST -->
</li>